package gossbs;

import java.util.Scanner;

public class J03SungJuk {
	public static void main (String[] args){
	
 String name;
	int eng;
	int kor;
	int mat;
	int tot;
	double avg;
	char grd = ' ';  //학점 : 수우미양가
	Scanner sc = null;
	
	//2데이터 및 성적 처리
	 sc = new Scanner(System.in);
	System.out.println("이름을 입력하세요");
	name =sc.next();
	System.out.println("국어를 입력하세요");
	kor=sc.nextInt();
	System.out.println("수학를 입력하세요");
	mat=sc.nextInt();
	System.out.println("영어를 입력하세요");
	eng=sc.nextInt();
	
	//총점, 평균, 학점 계산
	tot = kor + eng + mat;
	avg = (double) tot /3;
	switch((int)avg/10){
	case 10 : 
	case 9 : grd = '수'; break;
	case 8 : grd = '우'; break;
	case 7 : grd = '미'; break;
	case 6 : grd = '양'; break;
	default : grd ='가';
	}
	


	//3.결과출력
	//System.out.println(name);
	System.out.println(kor);
	System.out.println(eng);
	System.out.println(mat);
	System.out.println(tot);
	System.out.println(grd);  //학점
	sc.close();
	}
}
	